import React from 'react'
import { NavBar, Space, Toast } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
import { getcarListApi } from '../../api/qqApi'
function Index() {
  const nav=useNavigate()
  return (
    <div>
        <NavBar onBack={()=>nav(-1)}>标题</NavBar>
    </div>
  )
}

export default Index
export const loader=async ()=>{
  const {data:res}=await getcarListApi()
  console.log(res);
  return {list:res}
  
}